package org.tacademy.pacelable;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Toast;

public class AnotherActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {

		super.onCreate(savedInstanceState);
		setContentView(R.layout.another);
		
		Intent intent = getIntent();
		
		SampleParcelableData data = intent.getParcelableExtra("data");
		Toast.makeText(getApplicationContext(), data.getName(), Toast.LENGTH_LONG).show();
		
	}
	
}
